package com.yuanfeng.activity.controller;


import com.alibaba.fastjson.JSON;
import com.yuanfeng.activity.dto.DiscountBaseDetailQueryDTO;
import com.yuanfeng.activity.dto.DiscountGoodsAddParamDTO;
import com.yuanfeng.commoms.annnotation.Log;
import com.yuanfeng.commoms.constant.CommonStatusEnum;
import com.yuanfeng.commoms.exception.BizCodeEnume;
import com.yuanfeng.commoms.util.ResponseResult;
import com.yuanfeng.commoms.vo.activity.AppDiscountGoodsQueryResultVO;
import com.yuanfeng.commoms.vo.activity.CheckDiscountLimitResultVO;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @ClassName ActivityGoodsController
 * @Description 限时折扣商品表
 * @Author cyp
 * @Date 2023-12-06 14:13:08
 * @Version 1.0
 **/
@RestController
@RequestMapping("activity/goods")
public class ActivityGoodsController extends BaseController {
    /**
     * 查看 限时折扣、是否到购买上限
     * @param param
     * @return
     */
    @PostMapping("/check/limit")
    public ResponseResult checkDiscountLimit(@RequestBody Map<String,Object> param) {

        return activityGoodsService.checkGoodsLimit(param);
    }

}

